#pragma once
#include "common.h"
#include "Markup.h"

class CConfigOpe
{
public:
	CConfigOpe(void);
	~CConfigOpe(void);	

	bool ReadHardwareInfo( GlobalHardwareInfo &myHardwareInfo, const WCHAR *wcsConsfigFilePath = USED_XML_PATH);
	bool ReadSoftwareInfo(GlobalSoftwareInfo &mySoftwareInfo, const WCHAR *wcsConfigFilePath = USED_XML_PATH);
	bool ReadInstrumentInfo(GlobalInstrumentInfo &myInstrumentInfo, const WCHAR *wcsConfigFilePath = USED_XML_PATH);	
	bool ReadProtocol(const wchar_t* strModule, vector<tagLogicInfo>& vecLogic, const wchar_t *wcsConfigFilePath = USED_XML_PATH);
	bool UpdateDeviceInfo(tagVarType3 &myDevVarPara);
	void DeleteTempFile();

private:
	bool ExistTheFile();	
	
};
